// import request from '@/utils/request'
/* Layout */
import Layout from '@/layout'
// 菜单静态信息
export function getMenuDataTest() {
  return {
    msg: '操作成功',
    code: 200,
    data: [
      {
        path: '/nested',
        component: Layout,
        redirect: '/nested/menu1',
        name: 'Nested',
        meta: {
          title: '一级菜单',
          icon: 'example'
        },
        children: [
          {
            path: 'menu1',
            component: () => import('@/views/nested/menu1/index'), // Parent router-view
            name: 'Menu1',
            meta: { title: '二级菜单2' },
            children: [
              {
                path: 'menu1-1',
                component: () => import('@/views/nested/menu1/menu1-1'),
                name: 'Menu1-1',
                meta: { title: '三级菜单' },
                children: [
                  {
                    path: 'menu1-1',
                    component: () => import('@/views/nested/menu1/menu1-1'),
                    name: 'Menu1-1',
                    meta: { title: '三级菜单' }
                  },
                  {
                    path: 'menu1-2',
                    component: () => import('@/views/nested/menu1/menu1-2'),
                    name: 'Menu1-2',
                    meta: { title: '三级菜单' }
                  }
                ]
              },
              {
                path: 'menu1-2',
                component: () => import('@/views/nested/menu1/menu1-2'),
                name: 'Menu1-2',
                meta: { title: '三级菜单' }
              }
            ]
          },
          {
            path: 'menu2',
            component: () => import('@/views/nested/menu2/index'), // Parent router-view
            name: 'Menu2',
            meta: { title: '二级菜单2' }
          }
        ]
      },
      {
        path: '/table',
        component: Layout,
        redirect: '/dashboard',
        name: 'Table',
        meta: {
          title: '表格',
          icon: 'example'
        },
        children: [
          {
            path: 'tableView',
            component: () => import('@/views/Table/table-view.vue'),
            name: 'TableView',
            meta: { title: 'element表格' }
          },
          {
            path: 'vxeTable',
            component: () => import('@/views/Table/vxe-table.vue'),
            name: 'VxeTable',
            meta: { title: 'vxe-table表格' }
          },
          {
            path: 'table1',
            component: () => import('@/views/Table/table1.vue'),
            name: 'Table1',
            meta: { title: 'Table1表格' }
          }
        ]
      },
      {
        path: '/video',
        component: Layout,
        redirect: '/dashboard',
        name: 'Video',
        meta: {
          title: '视频',
          icon: 'example'
        },
        children: [
          {
            path: 'VueDPlayer',
            component: () => import('@/views/video/vue-dplayer.vue'),
            name: 'VueDPlayer',
            meta: { title: '视频' }
          },
          {
            path: 'xgplayer',
            component: () => import('@/views/video/xgplayer.vue'),
            name: 'xgplayer',
            meta: { title: '西瓜视频' }
          }
        ]
      },
      {
        'path': '外链',
        'component': Layout,
        'children': [
          {
            'path': 'https://github.com/PanJiaChen/vue-element-admin',
            'meta': { 'title': 'externalLink', 'icon': 'link' }
          }
        ]
      },

      // 必须将404页放置在最后
      { path: '*', redirect: '/404', hidden: true }
    ]
  }
}
